package com.example.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product {
    int id;
    String name;
    double market_price;
    double shop_price;
    String image;
    Date date;
    int hot;
    String description;
    int flag;
    String cid;

    @Override
    public String toString() {
        return "[id=" + id + ", name=" + name + ", market_price=" + market_price
                + ", shop_price=" + shop_price + ", image=" + image + ", date=" + date
                + ", hot=" + hot + ", description=" + description + ", flag=" + flag
                + ", cid=" + cid + "]";
    }
}
